$(function () {

    $(".star").click(function () {
        $("#stars").val("1");

            var count = $(this).attr("count");
            $("#score").val(count);
            $(".star").children().children().attr("src", "/heatconfig/images/address/white.jpg");
            for (var i = 1; i <= count; i++) {

                $("li[count=" + i + "]").children().children().attr("src", "/heatconfig/images/address/red.jpg");
            }
        })


})